#ifndef MEMORY_ROUTINES_H
#define MEMORY_ROUTINES_H

#ifdef MR_USES_IPP
	#include <ipps.h>

	#define mrMemCopy(_dst, _src, _count)	::ippsCopy_8u((Ipp8u *)(_src), (Ipp8u *)(_dst), _count)
	#define mrMemMove(_dst, _src, _count)	::ippsMove_8u((Ipp8u *)(_src), (Ipp8u *)(_dst), _count)
	#define mrMemSet(_dst, _val, _count)	::ippsSet_8u(_val, (Ipp8u *)(_dst), _count)
#else
	#ifndef _CRT_SECURE_DEPRECATE_MEMORY
		#define _CRT_SECURE_DEPRECATE_MEMORY
	#endif
	#include <string.h>

	#define mrMemCopy(_dst, _src, _count)	::memcpy(_dst, _src, _count)
	#define mrMemMove(_dst, _src, _count)	::memmove(_dst, _src, _count)
	#define mrMemSet(_dst, _val, _count)	::memset(_dst, _val, _count)
#endif

#endif